package com.liuyi.netty.im.test.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.liuyi.rapid.develop.objectmapper.ObjectMapperUtil;
import com.liuyi.rapid.develop.web.EnableRapidWeb;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;

/**
 * liuyi-rapid 快速开发配置
 * @author Mr.Fmy
 * @since 2021/12/25
 */
@Configuration
@EnableRapidWeb
@DependsOn("springContext")
public class LiuyiRapidConfig {

    @Autowired
    public LiuyiRapidConfig(ObjectMapper om) {
        ObjectMapperUtil.basicConfig(om);
        ObjectMapperUtil.java8TimeStrConfig(om);
        ObjectMapperUtil.iwEnumConfig(om);
    }
}
